package com.flats.model.entity;


import java.util.HashSet;
import java.util.Set;

public class Owner implements Persistent {
    private Long id;
    private Users user;
    private Integer numberOfFlat;
    private Integer rating;
    private Set<Flat> flats = new HashSet<Flat>();

    public Set<Flat> getFlats() {
        return flats;
    }

    public Owner() {
    }

    public void setFlats(Set<Flat> flats) {
        this.flats = flats;
    }

    public Users getUser() {
        return user;
    }

    public void setUser(Users user) {
        this.user = user;
    }

    public Integer getNumberOfFlat() {
        return numberOfFlat;
    }

    public void setNumberOfFlat(Integer numberOfFlat) {
        this.numberOfFlat = numberOfFlat;
    }

    public Integer getRating() {
        return rating;
    }

    public void setRating(Integer rating) {
        this.rating = rating;
    }

    @Override
    public Long getId() {
        return id;
    }

    @Override
    public void setId(Long id) {
        this.id = id;
    }
}
